package org.rainy.gift.controller;

import org.rainy.gift.service.impl.VerifyCodeServiceImpl;
import org.rainy.gift.util.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/verifyCode")
public class VerifyCodeController {
    @Autowired
    VerifyCodeServiceImpl verifyCodeService;

    @RequestMapping("/userRegister/sms/{phone}")
    public AjaxResult userRegisterSendSmsCode(@PathVariable String phone) {
        verifyCodeService.SendSmsCode(phone,"user_register_sms_code_");
        return AjaxResult.me();
    }
}
